package com.lb.trac.util;

import java.io.Serializable;


public class Page implements Serializable {
	private int firstRecord;
	private int page;

	private boolean firstPage = false;
	private boolean lastPage = false;
	private Page previousPage;
	
	private int pagineTotali ;
	

	public int getPagineTotali() {
		return pagineTotali;
	}

	public void setPagineTotali(int pagineTotali) {
		this.pagineTotali = pagineTotali;
	}

	public boolean isFirstPage() {
		return firstPage;
	}

	public void setPreviousPage(Page prevPage) {
		this.previousPage = prevPage;
	}

	public Page getPreviousPage() {
		return previousPage;
	}

	public void setFirstPage(boolean firstPage) {
		this.firstPage = firstPage;
	}

	public boolean isLastPage() {
		return lastPage;
	}

	public void setLastPage(boolean lastPage) {
		this.lastPage = lastPage;
	}

	public Page() {
		super();
	}

	public int getFirstRecord() {
		return firstRecord;
	}

	public void setFirstRecord(int firstRecord) {
		this.firstRecord = firstRecord;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Page [firstPage=");
		builder.append(firstPage);
		builder.append(", firstRecord=");
		builder.append(firstRecord);
		builder.append(", lastPage=");
		builder.append(lastPage);
		builder.append(", page=");
		builder.append(page);
		builder.append("]");
		return builder.toString();
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}
}
